home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / event.d / rc1 < prev    next >
Text File  |  2008-09-29  |  342b  |  20 lines

  1. # rc1 - runlevel 1 compatibility
  2. #
  3. # This task runs the old sysv-rc runlevel 1 ("single-user") scripts. 
  4.  
  5. start on runlevel 1
  6.  
  7. stop on runlevel [!1]
  8.  
  9. console output
  10. script
  11.     set $(runlevel --set 1 || true)
  12.     if [ "$1" != "unknown" ]; then
  13.         PREVLEVEL=$1
  14.         RUNLEVEL=$2
  15.         export PREVLEVEL RUNLEVEL
  16.     fi
  17.  
  18.     exec /etc/init.d/rc 1
  19. end script
  20.